﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Urs.Data.Mapping;
using Urs.Plugin.Shipping.ByWeight.Domain;

namespace Shipping.ByWeight.Mapping
{
    internal class ShippingScopeByWeightRecordMap : UrsEntityTypeConfiguration<ShippingScopeByWeightRecord>
    {
        #region Methods

        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityTypeBuilder<ShippingScopeByWeightRecord> builder)
        {
            builder.ToTable(nameof(ShippingScopeByWeightRecord));
            builder.HasKey(record => record.Id);
            base.Configure(builder);
        }

        #endregion Methods
    }
}